home *** CD-ROM | disk | FTP | other *** search
/ PC Plus SuperCD (UK) 1997 February / PC Plus Super CD (Issue 124) (PCP124-2-97) (February 1997).iso / componen / resize / demo / form1.frm (.txt) next >
Encoding:
Visual Basic Form  |  1995-11-13  |  11.7 KB  |  369 lines

  1. VERSION 2.00
  2. Begin Form Form1 
  3.    BackColor       =   &H00C0C0C0&
  4.    Caption         =   "ReSize Sample Application"
  5.    ClientHeight    =   4785
  6.    ClientLeft      =   1245
  7.    ClientTop       =   1275
  8.    ClientWidth     =   6405
  9.    Height          =   5190
  10.    Icon            =   FORM1.FRX:0000
  11.    Left            =   1185
  12.    LinkTopic       =   "Form1"
  13.    ScaleHeight     =   4785
  14.    ScaleWidth      =   6405
  15.    Top             =   930
  16.    Width           =   6525
  17.    Begin CommandButton Command6 
  18.       Caption         =   "Enable Form Minimum Sizing"
  19.       FontBold        =   -1  'True
  20.       FontItalic      =   0   'False
  21.       FontName        =   "Arial"
  22.       FontSize        =   7.5
  23.       FontStrikethru  =   0   'False
  24.       FontUnderline   =   0   'False
  25.       Height          =   375
  26.       Left            =   360
  27.       TabIndex        =   19
  28.       Top             =   4200
  29.       Width           =   2775
  30.    End
  31.    Begin ReSize ReSize1 
  32.       Enabled         =   -1  'True
  33.       FormMinHeight   =   0
  34.       FormMinWidth    =   0
  35.       Left            =   120
  36.       Top             =   2400
  37.    End
  38.    Begin CommandButton Command5 
  39.       Caption         =   "Line Demo"
  40.       FontBold        =   -1  'True
  41.       FontItalic      =   0   'False
  42.       FontName        =   "Arial"
  43.       FontSize        =   7.5
  44.       FontStrikethru  =   0   'False
  45.       FontUnderline   =   0   'False
  46.       Height          =   375
  47.       Left            =   3240
  48.       TabIndex        =   18
  49.       Top             =   3720
  50.       Width           =   2775
  51.    End
  52.    Begin CommandButton Command4 
  53.       Caption         =   "Move things around"
  54.       FontBold        =   -1  'True
  55.       FontItalic      =   0   'False
  56.       FontName        =   "Arial"
  57.       FontSize        =   7.5
  58.       FontStrikethru  =   0   'False
  59.       FontUnderline   =   0   'False
  60.       Height          =   375
  61.       Left            =   3240
  62.       TabIndex        =   17
  63.       Top             =   4200
  64.       Width           =   2775
  65.    End
  66.    Begin CommandButton Command3 
  67.       Caption         =   "Change Fonts"
  68.       FontBold        =   -1  'True
  69.       FontItalic      =   0   'False
  70.       FontName        =   "Arial"
  71.       FontSize        =   7.5
  72.       FontStrikethru  =   0   'False
  73.       FontUnderline   =   0   'False
  74.       Height          =   375
  75.       Left            =   360
  76.       TabIndex        =   16
  77.       Top             =   3720
  78.       Width           =   2775
  79.    End
  80.    Begin CommandButton Command2 
  81.       Caption         =   "Help"
  82.       FontBold        =   -1  'True
  83.       FontItalic      =   0   'False
  84.       FontName        =   "Arial"
  85.       FontSize        =   7.5
  86.       FontStrikethru  =   0   'False
  87.       FontUnderline   =   0   'False
  88.       Height          =   372
  89.       Left            =   4800
  90.       TabIndex        =   15
  91.       Top             =   720
  92.       Width           =   1332
  93.    End
  94.    Begin Frame Frame1 
  95.       BackColor       =   &H00C0C0C0&
  96.       Caption         =   "Misc. Info"
  97.       FontBold        =   -1  'True
  98.       FontItalic      =   0   'False
  99.       FontName        =   "Arial"
  100.       FontSize        =   7.5
  101.       FontStrikethru  =   0   'False
  102.       FontUnderline   =   0   'False
  103.       Height          =   972
  104.       Left            =   960
  105.       TabIndex        =   14
  106.       Top             =   2280
  107.       Width           =   4452
  108.       Begin CheckBox Check1 
  109.          BackColor       =   &H00C0C0C0&
  110.          Caption         =   "Current Client?"
  111.          FontBold        =   -1  'True
  112.          FontItalic      =   0   'False
  113.          FontName        =   "Arial"
  114.          FontSize        =   7.5
  115.          FontStrikethru  =   0   'False
  116.          FontUnderline   =   0   'False
  117.          Height          =   252
  118.          Left            =   240
  119.          TabIndex        =   5
  120.          Top             =   360
  121.          Width           =   1572
  122.       End
  123.       Begin OptionButton Option1 
  124.          BackColor       =   &H00C0C0C0&
  125.          Caption         =   "Male"
  126.          FontBold        =   -1  'True
  127.          FontItalic      =   0   'False
  128.          FontName        =   "Arial"
  129.          FontSize        =   7.5
  130.          FontStrikethru  =   0   'False
  131.          FontUnderline   =   0   'False
  132.          Height          =   252
  133.          Left            =   2520
  134.          TabIndex        =   6
  135.          Top             =   360
  136.          Width           =   1212
  137.       End
  138.       Begin OptionButton Option2 
  139.          BackColor       =   &H00C0C0C0&
  140.          Caption         =   "Female"
  141.          FontBold        =   -1  'True
  142.          FontItalic      =   0   'False
  143.          FontName        =   "Arial"
  144.          FontSize        =   7.5
  145.          FontStrikethru  =   0   'False
  146.          FontUnderline   =   0   'False
  147.          Height          =   252
  148.          Left            =   2520
  149.          TabIndex        =   7
  150.          Top             =   600
  151.          Width           =   1332
  152.       End
  153.    End
  154.    Begin CommandButton Command1 
  155.       Caption         =   "Exit"
  156.       FontBold        =   -1  'True
  157.       FontItalic      =   0   'False
  158.       FontName        =   "Arial"
  159.       FontSize        =   7.5
  160.       FontStrikethru  =   0   'False
  161.       FontUnderline   =   0   'False
  162.       Height          =   372
  163.       Left            =   4800
  164.       TabIndex        =   8
  165.       Top             =   240
  166.       Width           =   1332
  167.    End
  168.    Begin TextBox Text5 
  169.       FontBold        =   -1  'True
  170.       FontItalic      =   0   'False
  171.       FontName        =   "Arial"
  172.       FontSize        =   7.5
  173.       FontStrikethru  =   0   'False
  174.       FontUnderline   =   0   'False
  175.       Height          =   288
  176.       Left            =   5040
  177.       TabIndex        =   4
  178.       Top             =   1440
  179.       Width           =   732
  180.    End
  181.    Begin TextBox Text4 
  182.       FontBold        =   -1  'True
  183.       FontItalic      =   0   'False
  184.       FontName        =   "Arial"
  185.       FontSize        =   7.5
  186.       FontStrikethru  =   0   'False
  187.       FontUnderline   =   0   'False
  188.       Height          =   288
  189.       Left            =   3960
  190.       TabIndex        =   3
  191.       Top             =   1440
  192.       Width           =   372
  193.    End
  194.    Begin TextBox Text3 
  195.       FontBold        =   -1  'True
  196.       FontItalic      =   0   'False
  197.       FontName        =   "Arial"
  198.       FontSize        =   7.5
  199.       FontStrikethru  =   0   'False
  200.       FontUnderline   =   0   'False
  201.       Height          =   288
  202.       Left            =   1320
  203.       TabIndex        =   2
  204.       Top             =   1440
  205.       Width           =   1812
  206.    End
  207.    Begin TextBox Text2 
  208.       FontBold        =   -1  'True
  209.       FontItalic      =   0   'False
  210.       FontName        =   "Arial"
  211.       FontSize        =   7.5
  212.       FontStrikethru  =   0   'False
  213.       FontUnderline   =   0   'False
  214.       Height          =   288
  215.       Left            =   1320
  216.       TabIndex        =   1
  217.       Top             =   960
  218.       Width           =   2772
  219.    End
  220.    Begin TextBox Text1 
  221.       FontBold        =   -1  'True
  222.       FontItalic      =   0   'False
  223.       FontName        =   "Arial"
  224.       FontSize        =   7.5
  225.       FontStrikethru  =   0   'False
  226.       FontUnderline   =   0   'False
  227.       Height          =   288
  228.       Left            =   1320
  229.       TabIndex        =   0
  230.       Top             =   480
  231.       Width           =   2772
  232.    End
  233.    Begin Line Line1 
  234.       BorderWidth     =   4
  235.       X1              =   360
  236.       X2              =   6000
  237.       Y1              =   3600
  238.       Y2              =   3600
  239.    End
  240.    Begin Label Label5 
  241.       Alignment       =   1  'Right Justify
  242.       BackColor       =   &H00C0C0C0&
  243.       BackStyle       =   0  'Transparent
  244.       Caption         =   "Zip:"
  245.       FontBold        =   -1  'True
  246.       FontItalic      =   0   'False
  247.       FontName        =   "Arial"
  248.       FontSize        =   7.5
  249.       FontStrikethru  =   0   'False
  250.       FontUnderline   =   0   'False
  251.       Height          =   252
  252.       Left            =   4320
  253.       TabIndex        =   9
  254.       Top             =   1440
  255.       Width           =   612
  256.    End
  257.    Begin Label Label4 
  258.       Alignment       =   1  'Right Justify
  259.       BackColor       =   &H00C0C0C0&
  260.       BackStyle       =   0  'Transparent
  261.       Caption         =   "State:"
  262.       FontBold        =   -1  'True
  263.       FontItalic      =   0   'False
  264.       FontName        =   "Arial"
  265.       FontSize        =   7.5
  266.       FontStrikethru  =   0   'False
  267.       FontUnderline   =   0   'False
  268.       Height          =   252
  269.       Left            =   3120
  270.       TabIndex        =   10
  271.       Top             =   1440
  272.       Width           =   732
  273.    End
  274.    Begin Label Label3 
  275.       Alignment       =   1  'Right Justify
  276.       BackColor       =   &H00C0C0C0&
  277.       BackStyle       =   0  'Transparent
  278.       Caption         =   "City:"
  279.       FontBold        =   -1  'True
  280.       FontItalic      =   0   'False
  281.       FontName        =   "Arial"
  282.       FontSize        =   7.5
  283.       FontStrikethru  =   0   'False
  284.       FontUnderline   =   0   'False
  285.       Height          =   252
  286.       Left            =   480
  287.       TabIndex        =   11
  288.       Top             =   1440
  289.       Width           =   732
  290.    End
  291.    Begin Label Label2 
  292.       Alignment       =   1  'Right Justify
  293.       BackColor       =   &H00C0C0C0&
  294.       BackStyle       =   0  'Transparent
  295.       Caption         =   "Address:"
  296.       FontBold        =   -1  'True
  297.       FontItalic      =   0   'False
  298.       FontName        =   "Arial"
  299.       FontSize        =   7.5
  300.       FontStrikethru  =   0   'False
  301.       FontUnderline   =   0   'False
  302.       Height          =   252
  303.       Left            =   360
  304.       TabIndex        =   12
  305.       Top             =   960
  306.       Width           =   852
  307.    End
  308.    Begin Label Label1 
  309.       Alignment       =   1  'Right Justify
  310.       BackStyle       =   0  'Transparent
  311.       Caption         =   "Name:"
  312.       FontBold        =   -1  'True
  313.       FontItalic      =   0   'False
  314.       FontName        =   "Arial"
  315.       FontSize        =   7.5
  316.       FontStrikethru  =   0   'False
  317.       FontUnderline   =   0   'False
  318.       Height          =   252
  319.       Left            =   600
  320.       TabIndex        =   13
  321.       Top             =   480
  322.       Width           =   612
  323.    End
  324. Option Explicit
  325. Sub Command1_Click ()
  326.     End
  327. End Sub
  328. Sub Command2_Click ()
  329.     Form2.Show 1
  330. End Sub
  331. Sub Command3_Click ()
  332.     If Label1.FontName = "Arial" Then
  333.         Label1.FontName = "Times New Roman"
  334.         Label2.FontName = "Times New Roman"
  335.         Label3.FontName = "Times New Roman"
  336.         Label4.FontName = "Times New Roman"
  337.         Label5.FontName = "Times New Roman"
  338.     Else
  339.         Label1.FontName = "Arial"
  340.         Label2.FontName = "Arial"
  341.         Label3.FontName = "Arial"
  342.         Label4.FontName = "Arial"
  343.         Label5.FontName = "Arial"
  344.     End If
  345. End Sub
  346. Sub Command4_Click ()
  347.     Dim Temp As Integer
  348.     Option2.Left = Check1.Left
  349.     Temp = Check1.Left
  350.     Check1.Left = Option1.Left
  351.     Option1.Left = Temp
  352. End Sub
  353. Sub Command5_Click ()
  354.     Form3.Show 1
  355. End Sub
  356. Sub Command6_Click ()
  357.     If Command6.Caption = "Enable Form Minimum Sizing" Then
  358.         Command6.Caption = "Disable Form Minimum Sizing"
  359.         ReSize1.FormMinWidth = 4000
  360.         ReSize1.FormMinHeight = 3000
  361.         MsgBox "The smallest size you can make this form has been set to 3000 X 4000 twips.", 0, "ReSize Sample Application"
  362.     Else
  363.         Command6.Caption = "Enable Form Minimum Sizing"
  364.         ReSize1.FormMinWidth = 0
  365.         ReSize1.FormMinHeight = 0
  366.         MsgBox "The minimum form size restriction has been turned off.", 0, "ReSize Sample Application"
  367.     End If
  368. End Sub
  369.